<template>
  <div class="schoolSelect">
    <!-- 标题  路由 -->
    <div>
      <NavBar :title="title" :route="route"></NavBar>
    </div>
    <!-- 学生信息 -->
    <div>
      <div class="Information">
        <p>姓&#12288;&#12288;名&#12288;<span>王同学</span></p>
        <p>省&#12288;&#12288;市&#12288;<span>河北省-廊坊市-广阳区</span></p>
        <p>证件号码&#12288;<span>131010200809087766</span></p>
        <p>报考院校&#12288;<span>金榜登科第一中学</span></p>
        <div class="Enterbutton">
          <van-button round type="info" class="selectBtn" @click="selectBtn">添加专业</van-button>
        </div>
      </div>
    </div>
    <!-- 考试考掉 -->
    <div class="ArtExamination">
      <div class="major">
        <van-checkbox v-model="checked">廊坊市广阳区考点</van-checkbox>
        <p>￥0.0元</p>
      </div>
      <div class="delMajor">
        <p>美术</p>
      </div>
      <div class="majorBtn">
        <van-button class="delMajorBtn">删除该专业</van-button>
      </div>
    </div>
    <div class="ArtExamination">
      <div class="major">
        <van-checkbox v-model="checked">廊坊市广阳区考点</van-checkbox>
        <p>￥0.0元</p>
      </div>
      <div class="delMajor">
        <p>音乐</p>
      </div>
      <div class="majorBtn">
        <van-button class="delMajorBtn">删除该专业</van-button>
      </div>
    </div>
    <!-- 确认 -->
    <div class="EnterButton">
      <van-button type="info" @click="payment" style="width:345px;">合计：0.0元 &nbsp;提交</van-button>
    </div>
  </div>
</template>

<script>
    import NavBar from '@/components/navBar.vue'

    export default {
        data() {

            return {
                // 标题  路由
                title: '院校已选专业',
                route: 'MyApplication',
                radio: '1',
                checked: true
            }

        },

        methods: {
            payment() {
                this.$router.push({path: 'payment'})
            },
            // 已选专业
            selectBtn() {
                this.$router.push({path: 'examination'})
            }
        },
        components: {
            NavBar,
        },
    }
</script>

<style scoped>
  .schoolSelect {
    height: 100%;
    background-color: #f7f7f7;
  }

  .Information {
    padding: 13px 5px 30px;
    margin: 0px 15px;
    background-color: #fff;
    position: relative;
  }

  .Information p {
    margin-left: 16px;
    margin-bottom: -15px;
    line-height: 35px;
    font-size: 14px;
  }

  .Information p span {
    color: rgba(80, 80, 80, 1);
    font-size: 14px;
    text-align: left;
    font-weight: bold;
  }

  .Enterbutton {
    color: rgba(255, 255, 255, 1);
    border-radius: 16px;
    font-size: 12px;
    text-align: center;
    position: absolute;
    right: 25px;
    top: 5px;
  }

  .van-radio {
    margin-top: 20px;
    margin-left: 10px;
  }

  .EnterButton {
    height: 44px;
    color: rgba(255, 255, 255, 1);
    border-radius: 4px;
    font-size: 16px;
    text-align: center;
    margin-top: 77px;
  }

  .ArtExamination {
    margin: 20px 15px 0;
    color: rgba(80, 80, 80, 1);
    background-color: #fff;
    padding: 10px;
    font-size: 14px;
    font-weight: bold;
  }

  .ArtExamination .major {
    display: flex;
    justify-content: space-between;
  }

  .ArtExamination .delMajor {
    margin-left: 30px;
    margin-top: -20px;
  }

  .ArtExamination > p {
    margin-left: 40px;
    color: rgba(80, 80, 80, 1);
    font-size: 14px;
    text-align: left;
    font-weight: bold;
  }

  .ArtExamination .delMajorBtn {
    width: 95px;
    height: 35px;
    border-radius: 30px;
    border: 1px solid rgba(255, 141, 26, 1);
    color: rgba(255, 141, 26, 1);
    font-size: 12px;
    margin-top: -10px;
  }

  .ArtExamination .majorBtn {
    display: flex;
    justify-content: flex-end;
  }
  .Enterbutton {
    height: 25px;
    color: rgba(255, 255, 255, 1);
    border-radius: 16px;
    font-size: 12px;
    text-align: center;
    position: absolute;
    right: 25px;
    top: 1px;
  }

  .selectBtn {
    width: 90px;
    height: 26px;
    margin-top: 28px;
    margin-right: -20px;
    font-size: 12px;
  }
</style>
